﻿//*** Guidance generated code ***//
using System;
using System.Collections.Generic;
using System.Diagnostics.Contracts;
using System.Linq;

using ProjectBase.Core;
using ProjectBase.Core.Settings;
using ProjectBase.Mvc;

namespace $safeprojectname$
{
    public partial class ProjectSettings : BaseSettings, IProjectSettings
    {
        #region Members
        string _articleFilesCommonPath = "/files/";
        string _environment = "Development";
        #endregion Members

        #region IProjectSettings Members
        /// <summary>
        ///     ArticleGroupion, Test, Development.
        ///     To change this value change the Project.config
        ///     'project/project/add/' element with the key 'Environment'
        ///     to another 'value'
        ///     (NOTE: this is just an example)
        /// </summary>
        public virtual string Environment
        {
            get { return _environment; }
            set { _environment = value; }
        }

        /// <summary>
        ///     The common path for the Files belonging to the Articles.
        ///     Default value is "/files/"
        /// </summary>
        public virtual string ArticleFilesCommonPath
        {
            get { return _articleFilesCommonPath; }
            set { _articleFilesCommonPath = value; }
        }

        /// <summary>
        /// Use nice (indented) formatting for a Rest API
        /// </summary>
        public virtual bool UseJsonIndent { get; set; }
        
        /// <summary>Include = 0, Ignore = 1,</summary>
        public virtual int NullValueHandling { get; set; }

        /// <summary>
        /// If set to true, the DelegationHandler will accept CORS
        /// </summary>
        public virtual bool AllowCrossDomain { get; set; }
        #endregion
    }
}